<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Send_Email_C extends MX_Controller {

    function __construct() {
        parent::__construct();
        $this->load->library('email');
        $this->load->library('send_email');
    }

    function send_active($data) {

        $mail = array(
            'subject_sender' => 'Email Kích Hoạt Tài Khoản',
            'from_sender' => 'MapCenter.cs@gmail.com',
            'to_receiver' => $data['email'],
            'name_sender' => 'Map Center',
            'message' => $this->load->view('frontend/thanhvien/email/active', $data, TRUE),
        );
        $this->send_email->sendmail($mail);
    }

}
